package eu.otherweb.json;

import java.util.LinkedList;

import com.google.gson.annotations.SerializedName;

import eu.otherweb.util.StringUtil;

//input : {
//"name" : "zakboekje",
//"page-format" : "A6",
//"page-crop-left" : "14mm",
//"page-crop-right" : "13mm",
//"pages" : [
//	{"src":"/voorkant.svg", "format":"svg", "rotation":"left"},
//	{"src":"/voorkant.svg", "format":"svg", "rotation":"left"}
//]
//},



/**
 * @author johan
 *
 */
public class Input {
	private String name;
	@SerializedName("page-size") private EPageSize pageSize;
	@SerializedName("page-crop-left") private Length pageCropLeft;
	private LinkedList<Page> pages;
	@SerializedName("page-labels") private Label[] labels;
	
	public String getName() {
		return name;
	}

	public EPageSize getPageSize() {
		return pageSize;
	}

	public Length getPageCropLeft() {
		return pageCropLeft;
	}

	public LinkedList<Page> getPages() {
		return pages;
	}
	
	public void setPage(LinkedList<Page> pages) {
	    this.pages = pages;
	}

	public Label[] getLabels() {
	    return labels;
	}
	
	@Override
	public String toString() {	    
		return "[name=" + name + " pageFormat=" + pageSize + " pageCropLeft=" + pageCropLeft + " " + 
		    StringUtil.getToStringFromArray(pages.toArray()) + " "+ StringUtil.getToStringFromArray(labels) + "]";
	}
	
    
}
